let express = require('express')
let app = express()
let bodyParser = require('body-parser')
let compression = require('compression')

// let protocol1 = require('./protocol-v1')
// let protocol2 = require('./protocol-v2')
let protocol3 = require('./protocol-v3')

// app.use(bodyParser.json())
app.use(bodyParser.raw())
app.use(compression())
  // app.use(bodyParser.urlencoded({ extended: true }))

// app.post('/v1/client', protocol1)
// app.post('/v2/client', protocol2)

app.get('/ping', (_, res) => res.send(''))

app.post('/v3/client', protocol3)

app.use((req, res) => res.sendStatus(404))

app.listen(3000)
